#!/usr/bin/env python
# -*- coding:utf8 -*-
# uncompyle6 version 2.15.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, Jul  1 2017, 13:36:56) 
# [GCC 4.4.6 20110731 (Red Hat 4.4.6-4)]
# Embedded file name: ./esb/apps/sdk_management/sdk_tmpl/blueking/component/apis/cc.py
# Compiled at: 2017-11-16 15:44:28
"""
Tencent is pleased to support the open source community by making 蓝鲸智云(BlueKing) available.
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
"""
from ..base import ComponentAPI

class CollectionsCC(object):
    """Collections of CC APIS"""

    def __init__(self, client):
        self.client = client
        self.add_plat_id = ComponentAPI(client=self.client, method='POST', path='/api/c/compapi/cc/add_plat_id/', description=u'新增平台 ID')
        self.del_plat = ComponentAPI(client=self.client, method='POST', path='/api/c/compapi/cc/del_plat/', description=u'删除平台')
        self.get_app_by_user = ComponentAPI(client=self.client, method='GET', path='/api/c/compapi/cc/get_app_by_user/', description=u'查询用户有权限的业务')
        self.get_app_host_list = ComponentAPI(client=self.client, method='GET', path='/api/c/compapi/cc/get_app_host_list/', description=u'查询业务主机列表')
        self.get_app_list = ComponentAPI(client=self.client, method='GET', path='/api/c/compapi/cc/get_app_list/', description=u'查询业务列表')
        self.get_host_list_by_ip = ComponentAPI(client=self.client, method='GET', path='/api/c/compapi/cc/get_host_list_by_ip/', description=u'根据IP查询主机信息')
        self.get_hosts_by_property = ComponentAPI(client=self.client, method='GET', path='/api/c/compapi/cc/get_hosts_by_property/', description=u'根据 set 属性查询主机')
        self.get_ip_and_proxy_by_company = ComponentAPI(client=self.client, method='GET', path='/api/c/compapi/cc/get_ip_and_proxy_by_company/', description=u'查询业务下IP及ProxyIP')
        self.get_module_host_list = ComponentAPI(client=self.client, method='GET', path='/api/c/compapi/cc/get_module_host_list/', description=u'查询模块主机列表')
        self.get_modules = ComponentAPI(client=self.client, method='POST', path='/api/c/compapi/cc/get_modules/', description=u'查询业务下的所有模块')
        self.get_modules_by_property = ComponentAPI(client=self.client, method='GET', path='/api/c/compapi/cc/get_modules_by_property/', description=u'根据 set 属性查询模块')
        self.get_plat_id = ComponentAPI(client=self.client, method='GET', path='/api/c/compapi/cc/get_plat_id/', description=u'查询平台列表')
        self.get_set_host_list = ComponentAPI(client=self.client, method='GET', path='/api/c/compapi/cc/get_set_host_list/', description=u'查询Set主机列表')
        self.get_set_property = ComponentAPI(client=self.client, method='GET', path='/api/c/compapi/cc/get_set_property/', description=u'获取所有 set 属性')
        self.get_sets_by_property = ComponentAPI(client=self.client, method='GET', path='/api/c/compapi/cc/get_sets_by_property/', description=u'根据 set 属性获取 set')
        self.get_topo_tree_by_app_id = ComponentAPI(client=self.client, method='GET', path='/api/c/compapi/cc/get_topo_tree_by_app_id/', description=u'查询业务拓扑树')
        self.update_gse_proxy_status = ComponentAPI(client=self.client, method='POST', path='/api/c/compapi/cc/update_gse_proxy_status/', description=u'更新主机gse agent proxy 状态')
        self.update_host_by_app_id = ComponentAPI(client=self.client, method='POST', path='/api/c/compapi/cc/update_host_by_app_id/', description=u'更新主机的gse agent状态')
        self.update_host_plat = ComponentAPI(client=self.client, method='POST', path='/api/c/compapi/cc/update_host_plat/', description=u'更新主机云平台')
